<?php /* Smarty version 2.6.14, created on 2015-08-28 15:49:01
         compiled from cert.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cert.index.html', 66, false),array('modifier', 'date_format', 'cert.index.html', 111, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
body {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
margin:0;
}
#main {
height:1800px;
padding-top:90px;
text-align:center;
}
#fullbg {
left:0;
opacity:0.5;
position:absolute;
top:0;
z-index:3;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity:0.5;
}
#dialog {
background-color:#fff;
border:5px solid rgba(0,0,0, 0.4);
height:400px;
left:50%;
margin:-200px 0 0 -200px;
padding:1px;
position:fixed !important; /* 浮动对话框 */
position:absolute;
top:50%;
width:400px;
z-index:5;
border-radius:5px;
display:none;
}
#dialog p {
margin:0 0 12px;
height:24px;
line-height:24px;
background:#CCCCCC;
}
#dialog p.close {
text-align:right;
padding-right:10px;
}
#dialog p.close a {
color:#fff;
text-decoration:none;
} 
table.adminlist .perfile_add .noborder td { border-bottom: none !important; }
</style>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0" id="search">
   	<tr>
    	<td class="searchlogo"></td>
        <td>
			证书：<input type="text" class="text" style="width:88px" name="s[appName]" value="<?php echo $this->_tpl_vars['search']['appName']; ?>
"/>
			&nbsp;&nbsp;账号：<input type="text" class="text" style="width:88px" name="s[account]" value="<?php echo $this->_tpl_vars['search']['account']; ?>
"/>

			&nbsp;&nbsp;状态：<select id="s_channel" name="s[status]">
                <option value="">--全部--</option>
            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['status'],'selected' => $this->_tpl_vars['search']['status']), $this);?>

            </select>
			<!--
			&nbsp;&nbsp;Bundle_ID：<input type="text" class="text" style="width:88px" name="s[packName]" value="<?php echo $this->_tpl_vars['search']['packName']; ?>
"/>
			&nbsp;&nbsp;应用名称：<input type="text" class="text" style="width:88px" name="s[packName]" value="<?php echo $this->_tpl_vars['search']['packName']; ?>
"/>
			-->
			&nbsp;&nbsp;<input type="button" class="button" name="ng" onclick="submitform('<?php echo @BASEURI; ?>
cert/index',false)" value="<?php echo $this->_tpl_vars['systemLang']['search']; ?>
" />
		</td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">

    <thead>
    <tr>
        <th>证书编号</th>
        <th>证书名</th>
        <th>MD5</th>
		<th>账号</th>
		<th>Perfile文件 | 应用名称</th>
		<!--<th>用途</th>
		<th>应用名称</th> -->
        <th>添加时间</th>
        <th>状态</th>
        <th>最后检测时间</th>
		<th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php $_from = $this->_tpl_vars['result']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
?>
    <tr class="row0">
        <td><?php echo $this->_tpl_vars['info']['id']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['name']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['md5']; ?>
</td>
		<td><?php echo $this->_tpl_vars['info']['account']; ?>
</td>
		<td>
			<?php if (count ( $this->_tpl_vars['info']['perfile'] ) > 0): ?>
			<table class="perfile_add">
				<?php $_from = $this->_tpl_vars['info']['perfile']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['perfile']):
?>
				<tr <?php if ($this->_tpl_vars['k']+1 == $this->_tpl_vars['info']['p_count']): ?> class="noborder" <?php endif; ?>>
					<td><?php echo $this->_tpl_vars['perfile']['name']; ?>
|</td><td><?php echo $this->_tpl_vars['perfile']['appName']; ?>
</td>
				</tr>
				<?php endforeach; endif; unset($_from); ?>
			</table>
			<?php endif; ?>
		</td>
        <td><?php echo ((is_array($_tmp=$this->_tpl_vars['info']['addTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
        <td><?php if ($this->_tpl_vars['info']['status'] == 1): ?> <img src="/public/images/done.gif"> <?php else: ?> <img src="/public/images/delete.gif"> <?php endif; ?></td>
        <td><?php echo ((is_array($_tmp=$this->_tpl_vars['info']['lastCheckTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
		<td><a href="<?php echo @BASEURI; ?>
perfile/info/<?php echo $this->_tpl_vars['info']['id']; ?>
">上传</a>&nbsp;&nbsp;<a href="<?php echo @BASEURI; ?>
cert/info/<?php echo $this->_tpl_vars['info']['id']; ?>
">编辑</a>&nbsp;&nbsp;<a href="javascript:showBg(<?php echo $this->_tpl_vars['info']['id']; ?>
);">安全信息</a></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="3"><a href="<?php echo @BASEURI; ?>
cert/check">检查&新加</a></td>
        <td colspan="7" style="text-align:center"><?php echo $this->_tpl_vars['page']; ?>
</td>
    </tr>
    </tfoot>
</table>
</form>

<div id="fullbg"></div>
<div id="dialog">
	<p class="close"><a href="#" onclick="closeBg();">关闭</a></p>
	<div id="certmore">
		正在加载，请稍后....
	</div>
</div>
<script language="javascript">
    $('#cctime_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
    $('#cctime_e').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
</script>

<script type="text/javascript">
//显示灰色 jQuery 遮罩层
function showBg(id) {
	var bh = $("body").height();
	var bw = $("body").width();
	$("#fullbg").css({
		height:bh,
		width:bw,
		display:"block"
	});
	$.post("<?php echo $this->_tpl_vars['moreAction']; ?>
",{id:id},function(result){
		var str_html = '<table>'			
			+'<tr>'
			+'	<td width="25%" align="right">证书:</td>'
			+'	<td  align="left">'+result.name+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密码:</td>'
			+'	<td>'+result.mailPwd+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密码:</td>'
			+'	<td>'+result.developerPwd+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">绑定手机:</td>'
			+'	<td>'+result.phone+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保1:</td>'
			+'	<td>'+result.mailSecurity1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保1答案:</td>'
			+'	<td>'+result.mailAnswer1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保2:</td>'
			+'	<td>'+result.mailSecurity2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保2答案:</td>'
			+'	<td>'+result.mailAnswer2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保3:</td>'
			+'	<td>'+result.mailSecurity3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保3答案:</td>'
			+'	<td>'+result.mailAnswer3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保1:</td>'
			+'	<td>'+result.developerSecurity1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保1答案:</td>'
			+'	<td>'+result.developerAnswer1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保2:</td>'
			+'	<td>'+result.developerSecurity2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保2答案:</td>'
			+'	<td>'+result.developerAnswer2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保3:</td>'
			+'	<td>'+result.developerSecurity3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保3答案:</td>'
			+'	<td>'+result.developerAnswer3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">购买时间:</td>'
			+'	<td>'+result.payTime+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">来源:</td>'
			+'	<td>'+result.source+'</td>'
			+'</tr>'

		+'<table>';
		$('#certmore').html(str_html);
	},'json');		
	$("#dialog").show();
}
//关闭灰色 jQuery 遮罩
function closeBg() {
	$("#fullbg,#dialog").hide();
}
</script>